package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储商城营销活动
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Marketing extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 营销名称
     */
    private String name;

    /**
     * 营销说明
     */
    private String description;

    /**
     * 状态（0=结束，1=进行中）
     */
    private Boolean status;

    /**
     * 提交时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    public Marketing(Long id, String name, String description) {
        super(id);
        this.name = name;
        this.description = description;
    }

    public Marketing(String name, String description, Boolean status) {
        this.name = name;
        this.description = description;
        this.status = status;
    }
    @TableField(exist = false)
    private List<Long> goodsId;
}
